package com.jianggy.observer.jdk;

import java.util.Observable;
import java.util.Observer;

public class PhoneContact implements Observer {

	@Override
	public void update(Observable o, Object msg) {
		System.out.println("正在发送信息:'"+msg+"'到用户的手机");
		System.out.println("共有"+o.countObservers()+"种通知方式");
	}

}
